﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hfm.Common.Entity.Employee;
using Hfm.Core.DataAccess.Employee;

namespace Hfm.Core.BusinessManager.Employee
{
    public class EmployeeManager
    {
        protected readonly EmployeeData EmployeeDataAccess;

        public EmployeeManager()
        {
            
        }

        public EmployeeManager(EmployeeData employeeData)
        {
            EmployeeDataAccess = employeeData;
        }
        /// <summary>
        /// 查询所有Employee
        /// </summary>
        /// <returns></returns>
        public virtual IList<EmployeeEntity> GetEmplyees()
        {
            return EmployeeDataAccess.GetEmplyees();
        }
        /// <summary>
        /// 根据ID查询Employee
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public virtual EmployeeEntity GetEmplyeeName(int Id)
        {
            return EmployeeDataAccess.GetEmplyeeName(Id);
        }
    }
}
